#include<stdio.h>

int main(void)
{
	int n;
	scanf("%d",&n);
	
	inverse(n);
	
	return 0;
}
void inverse(int n)
{
	int num;
	if(n>1)
	{
		scanf("%d",&num);
		inverse(n-1);
		printf("%4d",num);
	}
	else
	{
		scanf("%d",&num);
		printf("%4d",num);
	}
}
